﻿<%@ Page Title="" Language="C#" MasterPageFile="~/styles/MasterPage.master" AutoEventWireup="true" CodeFile="Registration.aspx.cs" Inherits="Registration" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentHead" Runat="Server">
    <h3 class="titleDetails">Registration</h3>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentMain" Runat="Server">
    <div id="login">
        <table>
            <tr>
                <td style="width: 100px">
                    Login Name:
                </td>
                <td style="width: 300px">
                    <asp:TextBox ID="txtLoginName" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtLoginName"
                        ErrorMessage="(*)" ValidationGroup="valdGroup">(*)</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>FullName:</td>
                <td>
                    <asp:TextBox ID="txtFullName" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                        ControlToValidate="txtFullName" ErrorMessage="(*)" ValidationGroup="valdGroup">(*)</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    Password:
                </td>
                <td>
                    <asp:TextBox ID="txtPass" runat="server" TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPass"
                        ErrorMessage="(*)" SetFocusOnError="True" ValidationGroup="valdGroup">(*)</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>Re-Password:</td>
                <td>
                    <asp:TextBox ID="txtRePass" runat="server" TextMode="Password"></asp:TextBox>
                    <asp:CompareValidator ID="CompareValidator1" runat="server" 
                        ControlToCompare="txtPass" ControlToValidate="txtRePass" 
                        ErrorMessage="(*)" ValidationGroup="valdGroup">(*)</asp:CompareValidator>
                </td>
            </tr>
            <tr>
                <td>Email:</td>
                <td>
                    <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                        ControlToValidate="txtEmail" ErrorMessage="(*)" 
                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                        ValidationGroup="valdGroup">(*)</asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    <br />
                    <asp:Button ID="btnRegis" CssClass="buttonStyle1" runat="server" Text="Submit" 
                        ValidationGroup="valdGroup" onclick="btnRegis_Click" />
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    <asp:Label ID="lblResult" runat="server" Text=""></asp:Label>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>

